<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Banner extends Model
{
    protected $fillable = [
        'title', 'image','url','sort','is_show','type',
    ];

    public function getIsshowAttribute($value)
    {
        return $value?'展示':'隐藏';
    }
}
